var mongoose = require('../dao/mongo/mongo');
var Schema = mongoose.Schema;

var videoSchema = new Schema({
    //用户id
    uid: {
        type: String,
        tags: {type: [String], index: true}
    },
    //unix时间戳
    date: {
        type: String,
        tags: {type: [String], index: true}
    },
    //格式化的时间
    date_format: {
        type: String
    },
    //看视频的次数
    count: {
        type: Number
    }
}, {
    collection: "{MEET_RICH}_video"
});

module.exports = mongoose.model('Video', videoSchema);